#!/usr/bin/python

import bsddb as bdb
import os
import commands
            
cxn = bdb.db.DB()
dbPath = "aggregatorCache.bdb"
try:
    os.remove(dbPath)
except:
    pass
cxn.open(dbPath, dbtype=bdb.db.DB_BTREE, flags = bdb.db.DB_CREATE, mode=0666)
cxn.close()
commands.getoutput('chmod 666 %s' % dbPath)
    
